﻿using ProjectCore.Domain.DomainService;
using ProjectCore.Domain.Model.Entity;
using ProjectCore.Domain.Repository.Interfaces;
using ProjectCore.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProjectCore.Application.AppEval
{
    public class AppEval : IAppEval
    {
        private readonly IBaseRepository<Eval> baseRepository;
        private readonly MyContext myContext;
        private readonly IEvalDomainService Eval;
        public AppEval(IBaseRepository<Eval> _baseRepository, MyContext _myContext, IEvalDomainService _EvalDomainService)
        {
            baseRepository = _baseRepository;
            myContext = _myContext;
            Eval = _EvalDomainService;
        }
        public async Task<List<Eval>> GetEval()
        {
            return await Eval.GetEval();
        }
    }
}
